package main

import (
	"bufio"
	"fmt"
	"os"
	"strings"
)

func main() {
	reader := bufio.NewReader(os.Stdin)
	fmt.Print("请输入一个字符串: ")
	input_1, _ := reader.ReadString('\n')
	num := input_1[:len(input_1)-2]
	var num_2 string
	for _, char := range num {
		num_2 = string(char) + num_2
	}
	if strings.HasPrefix(num, num_2) {
		fmt.Printf("字符串%s是回文\n", num)
	} else {
		fmt.Printf("字符串%s不是是回文\n", num)
	}
}
